package cn.iocoder.yudao.module.search.api.search.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.Map;

/**
 * RPC 服务 - 搜索索引 Response DTO
 *
 * @author 芋道源码
 */
@Schema(description = "RPC 服务 - 搜索索引 Response DTO")
@Data
public class SearchIndexRespDTO {

    @Schema(description = "索引名称", example = "user_index")
    private String indexName;

    @Schema(description = "索引映射配置", example = "{\"properties\":{\"name\":{\"type\":\"text\"}}}")
    private Map<String, Object> mapping;

    @Schema(description = "索引设置配置", example = "{\"number_of_shards\":1}")
    private Map<String, Object> settings;

    @Schema(description = "文档数量", example = "100")
    private Long documentCount;

    @Schema(description = "索引大小", example = "1024")
    private Long indexSize;

}
